package com.qf.service.impl;

import com.qf.mapper.ClassInfoMapper;
import com.qf.pojo.ClassInfo;
import com.qf.service.ClassInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ClassInfoServiceImpl implements ClassInfoService {
    @Autowired
    private ClassInfoMapper classInfoMapper;

    /**
     * 查询所有书籍类别
     * @return
     */
    @Override
    public List<ClassInfo> findAll() {
        return classInfoMapper.findAll();
    }
}
